package utils;

import java.util.List;

/**
 * @author 张康泽
 * @ClassName: PageObject
 * @Description: TODO(分页实体类)
 * @date 2021/12/13 16:43
 */
public class PageObject {
    /**当前页的页码值 */
    private Integer pageCurrent=1;
    /**页面大小*/
    private Integer pageSize=3;
    /**总行数(通过查询获得)*/

    private Integer rowCount=0;
    /**总页数(通过计算获得)*/
    private Integer rowCount2=0;
    /**总页数(通过计算获得)*/
    private Integer pageCount=0;
    /**当前页记录*/
    private List<Object> records;


    /**当前页记录*/
    private List<Object> records2;

    public Integer getRowCount2() {
        return rowCount2;
    }

    public void setRowCount2(Integer rowCount2) {
        this.rowCount2 = rowCount2;
    }

    public Integer getPageCurrent() {
        return pageCurrent;
    }

    public void setPageCurrent(Integer pageCurrent) {
        this.pageCurrent = pageCurrent;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getRowCount() {
        return rowCount;
    }

    public void setRowCount(Integer rowCount) {
        this.rowCount = rowCount;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public List<Object> getRecords2() {
        return records2;
    }

    public void setRecords2(List<Object> records2) {
        this.records2 = records2;
    }

    @Override
    public String toString() {
        return "PageObject{" +
                "pageCurrent=" + pageCurrent +
                ", pageSize=" + pageSize +
                ", rowCount=" + rowCount +
                ", pageCount=" + pageCount +
                ", records=" + records +
                ", records2=" + records2 +
                '}';
    }

    public List<Object> getRecords() {
        return records;
    }

    public void setRecords(List<Object> records) {
        this.records = records;
    }
}
